﻿using HCMS.CommonDtos;
using HCMS.Entities.Base;
using HCMS.Repositories.Base;
using System.Threading.Tasks;

namespace HCMS.IServices.Base
{
    /// <summary>
    /// 行政区划 应用服务 接口
    /// </summary>
    public interface ISystemAreaAppService : ICommonAppService<BaseDbContext, SystemArea>
    {

        /// <summary>
        /// 管理 列表
        /// </summary>
        /// <param name="searchArgs">搜索 参数</param>
        /// <param name="pager">分页 参数</param>
        /// <returns></returns>
        Task<ListPagerDto<object>> ManageList(SearchArgsDto searchArgs, PagerArgsDto pager);

        /// <summary>
        /// 字典 树
        /// </summary>
        /// <returns></returns>
        Task<object> GetAllTree();

        /// <summary>
        /// 根据 省份 Id 删除数据
        /// </summary>
        /// <remarks>
        ///  物理删除
        /// </remarks>
        /// <param name="provinceId">省份 Id</param>
        /// <returns></returns>
        Task<bool> DelByProvinceId(int provinceId);

    }
}
